import {MOVIES} from '../constant/movie'

import {getMovieList} from  "../../api/api"
import store from "../store"
export const getMovieAction = () => {
    return async () => {
        const re = await getMovieList();
        store.dispatch({
            type : MOVIES,
            data:re.data.data.list
        })
    }
}